home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Today (Latin America) Volume 1 #6 / CD-ROM Today 6 Latam.iso / referenc / evol / map.dxr / 00007_move map window script.ls < prev    next >
Encoding:
Text File  |  1996-11-08  |  980 b   |  22 lines

  1. on mouseDown
  2.   SelectCursor(CHC())
  3.   tell the stage
  4.     puppetSprite(mapSprite(), 1)
  5.     set the member of sprite mapSprite() to member "mapdrag"
  6.     set the foreColor of sprite mapSprite() to 255
  7.     set the ink of sprite mapSprite() to BGTRANS()
  8.     set the rect of sprite mapSprite() to the rect of window MapName() - rect(the stageLeft, the stageTop, the stageLeft, the stageTop)
  9.     set the visible of window MapName() to 0
  10.     set offseth to the locH of sprite mapSprite() - the mouseH
  11.     set offsetv to the locV of sprite mapSprite() - the mouseV
  12.     repeat while the mouseDown
  13.       set the locH of sprite mapSprite() to the mouseH + offseth
  14.       set the locV of sprite mapSprite() to the mouseV + offsetv
  15.       updateStage()
  16.     end repeat
  17.     set the rect of window MapName() to the rect of sprite mapSprite() + rect(the stageLeft, the stageTop, the stageLeft, the stageTop)
  18.     set the visible of window MapName() to 1
  19.     puppetSprite(mapSprite(), 0)
  20.   end tell
  21. end
  22.